<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page language="java" import="java.util.*"%>
<%
    String contextPath = (String) request.getContextPath();
    Map userInfo = (Map)session.getAttribute("userMap");
    if (userInfo == null) {
        response.sendRedirect(request.getContextPath() +"/login.jsp");
    }
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>无线城市-手机预约挂号管理系统</title>
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/js/jquery-easyui-1.3/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/css/rs.css">
<link rel="stylesheet"
	href="<%=request.getContextPath()%>/css/style.css" type="text/css" />
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/home.css"
	type="text/css" />
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery-easyui-1.3/jquery-1.7.2.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery-easyui-1.3/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery-easyui-1.3/locale/easyui-lang-zh_CN.js"></script>

</head>

<body class="easyui-layout">
	<div data-options="region:'north',border:false"
		style=" overflow: hidden;height: 50px; background: #B3DFDA; padding: 0px; text-align: left; vertical-align: middle;">
		<div class="top_bar">
			<!-- Begin logo -->
			<div class="logo">
				<img alt="" src="img/wxcs_admin_logo.png">
			</div>
			<!-- End logo -->
			<!-- Begin name -->
			<div class="name">
				<h1>无线城市-手机预约挂号管理系统</h1>
			</div>
			<!-- End name -->
			<!-- Begin account menu -->
			<div class="account" sytle="flot:right;">
				<ul class="icon">
					<li><a title="Message" href=""> <img class="middle" alt=""
							src="img/icon_message.png">
					</a></li>
				</ul>
				<div class="detail">
					当前用户： <strong><%=userInfo.get("name")%></strong> <span
						style="padding: 0 5px">|<%=userInfo.get("loginTime")%></span>
					&nbsp;|&nbsp; <a
						href="<%=contextPath%>/userLogin.do?method=loginOut">退出</a>
				</div>
			</div>
			<!-- End account menu -->
		</div>
	</div>
	<div data-options="region:'west',split:true,title:'操作'"
		style="width: 230px; padding: 5px;">
		<div id="aa" class="easyui-accordion" data-options="fit:true"
			style="">
			<%if(userInfo.get("perms").toString().indexOf("1") != -1) {%>
			<div title="预约管理" data-options="iconCls:'icon-ok'"
				style="overflow: auto; padding: 10px;">
				<p>
					<a class="linkRed" href="source/doctor_list.jsp" target="mainfrm">医生排班管理</a>
				</p>
				<p>
					<a class="linkRed" href="<%=contextPath%>/reserve/reserveMgr.do?method=main" target="mainfrm">预约管理</a>
				</p>
				<p>
					<a class="linkRed" href="blackList/blackList.do?method=list"
						target="mainfrm">黑名单</a>
				</p>
				<p>
					<a class="linkRed" href="userContract/userContract.do?method=list"
						target="mainfrm">病人联系信息查询</a>
				</p>
			</div>
			<%} if(userInfo.get("perms").toString().indexOf("2") != -1) {%>
			<div title="专家管理" data-options="iconCls:'icon-ok'"
				style="overflow: auto; padding: 10px;">
				<p>
					<a class="linkRed" href="doctor/doctor_list.jsp" target="mainfrm">专家管理</a>
				</p>
				<p>
					<a class="linkRed" href="hospital/hospital_list.jsp"
						target="mainfrm">医院管理</a>
				</p>
				
				<p>
					<a class="linkRed" href="section/section_list.jsp" target="mainfrm">科室管理</a>
				</p>

				<!-- p>
					<a class="linkRed" href="section/sec_catalog_list.jsp" target="mainfrm">科室目录管理</a>
				</p -->
			</div>
			<%} if(userInfo.get("perms").toString().indexOf("3") != -1) {%>
			<div title="系统管理" data-options="iconCls:'icon-ok'"
				style="overflow: auto; padding: 10px;">
				<p>
					<a class="linkRed" href="syslog/admin_log_list.jsp"
						target="mainfrm">后台日志</a>
				</p>
				<p>
					<a class="linkRed" href="syslog/user_log_list.jsp"
						target="mainfrm">前台日志</a>
				</p>
				<p>
					<a class="linkRed" href="adminmgr/admin_list.jsp" target="mainfrm">管理员管理</a>
				</p>
			</div>
			<%} if(userInfo.get("perms").toString().indexOf("4") != -1) { %>
			<div title="排班管理" data-options="iconCls:'icon-ok'"
				style="overflow: auto; padding: 10px;">
				<p>
					<a class="linkRed" href="schedule/schedule_list.jsp" target="mainfrm">排班管理</a>
				</p>
			</div>
			<%} %>
		</div>
	</div>
	<!--div data-options="region:'south',border:false"
		style="height: 30px; background: #014277; padding: 10px; text-align: center; color: #FFF">south
		region</div-->
	<div data-options="region:'center'" style="padding: 0px;">
		<iframe id="mainfrm" name="mainfrm" width="100%" height="100%"
			frameborder="0" scrolling="no" style="border: 0px none;"
			src="<%=contextPath%>/reserve/reserveMgr.do?method=main"> </iframe>
	</div>
</body>
</html>